package com.yanqu.road.logic.bussiness.servercenter;

import com.yanqu.road.entity.servercenter.XServerName;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.List;

public class XServerNameBussiness {

    public static List<XServerName> getXServerNameList(String dbName, String tableName) {
        return DaoHelper.getXServerNameDaoImpl(dbName, tableName).getXServerNameList();
    }

    public static boolean updateXServerName(String dbName, String tableName,
                                            XServerName xServerName) {
        return DaoHelper.getXServerNameDaoImpl(dbName, tableName).update(xServerName);
    }

    public static boolean addXServerName(String dbName, String tableName,
                                         XServerName xServerName) {
        return DaoHelper.getXServerNameDaoImpl(dbName, tableName).add(xServerName);
    }

}
